Add more CSS node docs
authorMatthias Clasen <mclasen@redhat.com>
Thu, 19 Nov 2015 19:01:41 +0000 (14:01 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 19 Nov 2015 19:01:41 +0000 (14:01 -0500)
gtk/gtkcssnode.c

index 6727d9fb8f22ff1f4a8d5d26eb127b21ffeb9b1e..560f30673ba59240ff7a54fdf2a767af4861554c 100644 (file)
  * - The draw function should just use gtk_style_context_save_to_node() to
  *   'switch' to the right node, not make any other changes to the style
  *   context.
+ *
+ * A noteworthy difference between gtk_style_context_save() and
+ * gtk_style_context_save_to_node() is that the former inherits all the
+ * style classes from the main CSS node, which often leads to unintended
+ * inheritance. 
  */
 
 /* When these change we do a full restyling. Otherwise we try to figure out